package com.backend.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * 
 * @TableName menu
 */
@TableName(value ="menu")
@Data
public class Menu implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 菜单编号
     */
    @TableField(value = "menuCode")
    private String menuCode;

    /**
     * 菜单名称
     */
    @TableField(value = "menuName")
    private String menuName;

    /**
     * 菜单级别
     */
    @TableField(value = "menuLevel")
    private String menuLevel;

    /**
     * 父级菜单编号
     */
    @TableField(value = "menuParentCode")
    private String menuParentCode;

    /**
     * 菜单路由
     */
    @TableField(value = "menuPath")
    private String menuPath;

    /**
     * 菜单图标
     */
    @TableField(value = "menuIcon")
    private String menuIcon;

    /**
     * 菜单组件
     */
    @TableField(value = "menuComponent")
    private String menuComponent;

    /**
     * 用户角色对应的菜单
     */
    @TableField(value = "userRole")
    private String userRole;

    /**
     * 
     */
    @TableField(value = "createTime")
    private Date createTime;

    /**
     * 
     */
    @TableField(value = "updateTime")
    private Date updateTime;

    /**
     * 
     */
    @TableField(value = "isDelete")
    @TableLogic
    private Byte isDelete;

    @TableField(exist = false)
    private List<Menu> children;


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}